export default {
    formTitle: '',
    pageOption: {current: 1, size: 10, total: 11, sizes: [10, 20, 50, 100]},
    tableAttr: [
        {field: 'name', label: '姓名', width: '120', header: 'input'},
        {field: 'username', label: '用户名', header: 'input'},
        {type: 'tags', field: 'roles', label: '角色', header: 'select',
            options: [
                {value: '1', label: '超级管理员'},
                {value: '2', label: '管理员'},
            ]
        },
        {field: 'phone', label: '手机号', sortable: true, header: 'input'},
        {type: 'tag', field: 'status', label: '状态', header: 'select',
            options: [
                {value: '0', label: '禁用', type: 'danger'},
                {value: '1', label: '正常', type: 'success'},
            ]
        },
        {field: 'createTime', label: '创建时间', header: 'daterange', width: 250},
        {type: 'handle', field: 'handle', label: '操作', fixed: 'right', header: 'search',
            edit: { label: '编辑', type: 'text', size: 'small'},
            delete: { label: '删除'},
        }
    ],
    showDialog: false,
    formAttr: [
        {field: 'name', label: '姓名', type: 'input', alert: '初始密码为888888', rules: [{required: true, message: '姓名不能为空'}]},
        {field: 'username', label: '用户名', type: 'input', rules: [{required: true, message: '用户名不能为空'}]},
        {field: 'phone', label: '手机号', type: 'input', disabled: true},
        {
            field: 'status', label: '状态', type: 'radio',
            options: [
                {value: 0, label: '禁用'},
                {value: 1, label: '正常'},
            ]
        }
    ],
    editForm: {
        status: 1
    },
    centerDialogVisible: false,
    dialogFormVisible: false,
    tableLoading: false,
    tableData: [],
    multipleSelection: [],
    delBtnStu: true,
    roleDialogFormVisible: false,
    roleForm: {},
    defaultProps: {
        children: 'children',
            label: 'name'
    },
    roleTreeData: [],
        treeCheckedKeys: [],
    roleTreeloading: true
}